<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vuejs-2.5.16.js"></script>

</head>
<body>

        <div id="app">
            {{message}}
            <input type="button" @click="fun('中国')" value="点我"/>
            <input type="button" @click="fun1('美国')" value="点我1"/>

        </div>
</body>


<script>
        new Vue({
            el:"#app",
            data:{
                message:"hello",
            },
            methods:{
                fun:function(words){
                   this.message=words;
                },
                fun1:function(words){
                    this.message=words;
                }

            }

        })
</script>

</html>